package ui.table;

import java.awt.event.KeyEvent;

import javax.swing.Icon;
import javax.swing.JToggleButton;

import data.Event;

public class EventButton extends JToggleButton
{
	public enum TYPE {
		STAR, TICK;
	}
	private TYPE type;
	private Event event;
	
	public EventButton(Icon selected, Icon unSelected, boolean state, TYPE type, Event e) {
		super();
		this.setSelectedIcon(selected);
		this.setIcon(unSelected);
		this.setSelected(state);
		this.setContentAreaFilled(false);
		this.setBorder(null);
		this.type = type;
		this.setMnemonic(KeyEvent.VK_S);
		this.event = e;
	}

	public Event getEvent() {
		return event;
	}

	public TYPE getType() {
		return type;
	}
}
